//
//  FHSharedViewControllers.m
//  BountyWaiter
//
//  Created by ZhenYu Wang on 2024/1/12.
//

#import "FHSharedViewControllers.h"
#import "FHHomeViewController.h"
#import "FHToBeSubmittedViewController.h"
#import "FHSubmittedViewController.h"
#import "FHPersonViewController.h"

@implementation FHSharedViewControllers

+ (FHHomeViewController *)fhHomeViewCon {
    static dispatch_once_t once;
    static FHHomeViewController *kViewCon = nil;
    dispatch_once(&once, ^{
        if (!kViewCon) {
            kViewCon = [[FHHomeViewController alloc] initWithNibName:@"FHHomeViewController" bundle:nil];
        }
    });
    return kViewCon;
}

+ (FHToBeSubmittedViewController *)fhToBeSubmittedViewCon {
    static dispatch_once_t once;
    static FHToBeSubmittedViewController *kViewCon = nil;
    dispatch_once(&once, ^{
        if (!kViewCon) {
            kViewCon = [[FHToBeSubmittedViewController alloc] initWithNibName:@"FHToBeSubmittedViewController" bundle:nil];
        }
    });
    return kViewCon;
}

+ (FHSubmittedViewController *)fhSubmittedViewCon {
    static dispatch_once_t once;
    static FHSubmittedViewController *kViewCon = nil;
    dispatch_once(&once, ^{
        if (!kViewCon) {
            kViewCon = [[FHSubmittedViewController alloc] initWithNibName:@"FHSubmittedViewController" bundle:nil];
        }
    });
    return kViewCon;
}

+ (FHPersonViewController *)fhPersonViewCon {
    static dispatch_once_t once;
    static FHPersonViewController *kViewCon = nil;
    dispatch_once(&once, ^{
        if (!kViewCon) {
            kViewCon = [[FHPersonViewController alloc] initWithNibName:@"FHPersonViewController" bundle:nil];
        }
    });
    return kViewCon;
}

@end
